package org.luxor.webflux.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * Java 注解编程模型
 *
 * @author Mr.Yan  @date: 2021/1/4
 */
@RestController
public class BasicController {

    @GetMapping("/")
    public Mono<String> sayHelloWorld() {
        return Mono.just("Hello World");
    }

}
